Utilize Log.nsf
Since there are a lot of logging happening
in the live console, I would recommend using the Log.nsf for this requirement.
It logs all the information in the live console real time so once the compact
is finished, you can check the result there.